package com.shuaitao.myblog.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shuaitao.myblog.bean.User;
import com.shuaitao.myblog.service.UserService;
import com.shuaitao.myblog.mapper.UserMapper;
import com.shuaitao.myblog.utils.R;
import org.springframework.stereotype.Service;

/**
* @author 24820
* @description 针对表【c_user】的数据库操作Service实现
* @createDate 2023-06-07 16:20:17
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService{

    @Override
    public R getUserInfo(String userId) {
        User user = this.getById(userId);
        return R.ok().put("user",user);

    }
}




